<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python import sitetemplate ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" 
      py:extends="sitetemplate">
  <head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title py:replace="''">标题</title>
    <meta py:replace="item[:]"/>
    <style type="text/css" media="screen">
      @import "${tg.url('/static/css/style.css')}";
    </style>
  </head>
  <body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
    <div id="header">
      <div py:if="tg.config('identity.on') and not defined('logging_in')" id="pageLogin">
	<span py:if="tg.identity.anonymous">
          <a href="${tg.url('/login')}">登录</a>
	</span>
	<span py:if="not tg.identity.anonymous">
          欢迎 [${tg.identity.user.display_name}] 登录。
          <a href="${tg.url('/logout')}">注销</a>
	</span>
      </div>
    </div>
    <ul id="navibar">
      <li py:if="'admin' in tg.identity.groups" py:attrs="class=(tg.request.path=='/project' and 'current')"><a href="project">项目管理</a></li>
      <li py:if="'admin' in tg.identity.groups" py:attrs="class=(tg.request.path=='/user' and 'current')"><a href="user">用户管理</a></li>
      <li py:if="not tg.identity.anonymous" py:attrs="class=(tg.request.path=='/editme' and 'current')"><a href="editme">帐户设置</a></li>
      <li py:attrs="class=(tg.request.path=='/job' and 'current')"><a href="job">求职</a></li>
      <li py:attrs="class=(tg.request.path=='/' and 'current')"><a href="/">帮助</a></li>
    </ul>
    <div id="main_content">
      <div id="status_block" class="flash" py:if="value_of('tg_flash', None)" py:content="tg_flash"></div>
      <div py:replace="[item.text]+item[:]"/>
    </div>
    <div id="footer">
      <p>TGSVN一款基于TurboGears开发的，版本控制软件Subversion的WEB管理工具。</p>
      <p>Copyright &#169; 2007 <a href="mailto:xuender@gmail.com">徐晨阳</a></p>
    </div>
  </body>
</html>
